#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int main() {
    long long res;
    int n;
    cin >> n;
    res = pow(2, n);
    cout << "2^" << n << " = " << res << endl;
    return 0;
}